<?php

/**
 * StkDept form.
 *
 * @package    tinystockmis
 * @subpackage form
 * @author     Linfeng Wu
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class StkDeptForm extends BaseStkDeptForm {
    public function configure() {
        unset(
                $this["id"],
                $this["created_at"],
                $this["updated_at"]
        );

        $this->widgetSchema["acct_set_id"] = new sfWidgetFormInputHidden(array(), array("value" => sfContext::getInstance()->getUser()->getAttribute("acct_set")));
        $this->widgetSchema["stk_opr"] = new sfWidgetFormInputHidden(array(),array("value"=>sfContext::getInstance()->getUser()->getAttribute("user_id")));

        //set labels
        $this->widgetSchema->setLabels(array(
            "stk_no" => "库存单位编号",
            "stk_name" => "库存单位名称",
            "stk_desc" => "详细描述"
        ));
    }
}
